ElementTransformUtils.CopyElements
Description:
Copies a set of elements and places the copies at a location indicated by a given translation.
Copies a set of elements and places the copies at a location indicated by a given translation.
Remarks:
This method is not suitable for elements that are hosted in other elements as it does not perform rehosting. If you need to rehost your elements in addition to copying them, use one of the other CopyElements() overloads.
This method is not suitable for elements that are hosted in other elements as it does not perform rehosting. If you need to rehost your elements in addition to copying them, use one of the other CopyElements() overloads.
Overloads (3):
CopyElements(Document,ICollection[ElementId],XYZ)
-
documentThe document that owns the elements.
-
ICollection<ElementId>elementsToCopyThe set of elements to copy.
-
translationThe translation vector for the new elements.
-
The given element id set is empty. -or- One or more elements in elementsToCopy do not exist in the document.
-
A non-optional argument was NULL
-
If we are not able to copy all the elements.